package com.syh.jn.scm.dto.upstream.base;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 服务商给供应绑定报价商品
 */
@Data
public class UpBusinessEntityGoodsOfferSto implements Serializable {
  /**
   * 归属id
   */
  @NotNull(message = "归属id不能为空")
  private Long businessEntityId;
  /**
   * 商品id
   */
  @NotNull(message = "商品id不能为空")
  private Long goodsId;
  /**
   * 起批量
   */
  @DecimalMin(value = "0",message = "起批量必须大于0")
  private BigDecimal quantity;
  /**
   * 商品价格
   */
  @DecimalMin(value = "0",message = "商品价格必须大于0")
  private BigDecimal goodsPrice;
  /**
   * 最大供应量
   */
  @DecimalMin(value = "0",message = "最大供应量必须大于0")
  private BigDecimal maxSupply;
}
